//
//  YSpreadView.h
//  yuimall_Iphone
//
//  Created by yuike6 yuike6 on 12-4-18.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import "UIViewEx.h"
#import "YSpreadViewModel.h"
#import "YSpreadViewItemView.h"

@protocol YSpreadViewDelegate;
@interface YSpreadView : UIViewEx<YSpreadViewItemViewDelegate>
{
    /*YSpreadViewModel*/ NSMutableArray * items_;
    UIScrollView *scrollView;
    
    NSMutableArray * itemViews;
    
    id <YSpreadViewDelegate> delegate_;
}

@property (nonatomic, strong) NSMutableArray * items;
@property (nonatomic, strong) UIScrollView *scrollView;

@property (nonatomic, assign) id <YSpreadViewDelegate> delegate; 

@end

@protocol YSpreadViewDelegate <NSObject>
- (void) clickWhichSubItem: (YSpreadViewItemViewSubjectView *) subjectView subItemView:(YSpreadViewItemViewSubViewItemView *) whichView;
- (void) subjectImageClick:(YSpreadViewItemViewSubjectView *) subjectView;

-(BOOL) isNeedShowHighLight:(YSpreadViewItemViewSubjectView *) subjectView;
@end
